package cn.truistic.enmicromsg.main.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

import cn.truistic.enmicromsg.R;
import cn.truistic.enmicromsg.main.MainMVP;
import cn.truistic.enmicromsg.main.presenter.ExportPresenter;

/**
 * 导出聊天记录
 */
public class ExportFragment extends Fragment implements MainMVP.IExportView {

    private View  mExportview;
    private ExportPresenter exportPresenter;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mExportview =  inflater.inflate(R.layout.fragment_export, container, false);
        exportPresenter = new ExportPresenter(getActivity(),this,mExportview );
        exportPresenter.setServerMapping();// 添加数据
        exportPresenter.getPhoneDeviceSerial();
        exportPresenter.displayIPAndPhoneNumber();
        exportPresenter.initEditText();
        exportPresenter.initView();
        exportPresenter.initListener();
        return mExportview;
    }

}
